package com.stylefeng.guns.core.beetl;

import com.stylefeng.guns.core.util.KaptchaUtil;
import com.stylefeng.guns.core.util.ToolUtil;
import org.beetl.ext.spring.BeetlGroupUtilConfiguration;

import java.util.HashMap;
import java.util.Map;

public class BeetlConfiguration extends BeetlGroupUtilConfiguration {

    @Override
    public void initOther() {

//        groupTemplate.registerFunctionPackage("shiro", new ShiroExt());
        Map<String, Object> sharedVars = new HashMap<>();
        sharedVars.put("version","1.1.3");

        groupTemplate.registerFunctionPackage("tool", new ToolUtil());
        groupTemplate.registerFunctionPackage("kaptcha", new KaptchaUtil());
        groupTemplate.setSharedVars(sharedVars);


    }

}
